﻿#ifndef PBCOMMON_WTHTTP_INC_
#define PBCOMMON_WTHTTP_INC_

// .h include
#include "wthttp.h"

// Property accomplish code start
inline QString WTHttpRequest::url() const
{ return url_; }
inline void WTHttpRequest::setUrl(const QString &newValue)
{ if ( newValue == url_ ) { return; } url_ = newValue; emit urlChanged( url_ ); }

inline QVariant WTHttpRequest::requestData() const
{ return requestData_; }
inline void WTHttpRequest::setRequestData(const QVariant &newValue)
{ if ( newValue == requestData_ ) { return; } requestData_ = newValue; emit requestDataChanged( requestData_ ); }

inline QVariant WTHttpRequest::responseData() const
{ return responseData_; }
inline void WTHttpRequest::setResponseData(const QVariant &newValue)
{ if ( newValue == responseData_ ) { return; } responseData_ = newValue; emit responseDataChanged( responseData_ ); }

inline int WTHttpRequest::responseCode() const
{ return responseCode_; }
inline void WTHttpRequest::setResponseCode(const int &newValue)
{ if ( newValue == responseCode_ ) { return; } responseCode_ = newValue; }

inline bool WTHttpRequest::isRunning() const
{ return isRunning_; }
inline void WTHttpRequest::setIsRunning(const bool &newValue)
{ if ( newValue == isRunning_ ) { return; } isRunning_ = newValue; emit isRunningChanged( isRunning_ ); }

inline bool WTHttpRequest::isSucceed() const
{ return isSucceed_; }
inline void WTHttpRequest::setIsSucceed(const bool &newValue)
{ if ( newValue == isSucceed_ ) { return; } isSucceed_ = newValue; emit isSucceedChanged( isSucceed_ ); }

inline bool WTHttpRequest::enabledLog() const
{ return enabledLog_; }
inline void WTHttpRequest::setEabledLog(const bool &newValue)
{ if ( newValue == enabledLog_ ) { return; } enabledLog_ = newValue; emit enabledLogChanged( enabledLog_ ); }

inline int WTHttpRequest::requestTimeElapsed() const
{ return requestTimeElapsed_; }
inline void WTHttpRequest::setRequestTimeElapsed(const int &newValue)
{ if ( newValue == requestTimeElapsed_ ) { return; } requestTimeElapsed_ = newValue; emit requestTimeElapsedChanged( requestTimeElapsed_ ); }

inline QString WTHttpRequest::errorMessage() const
{ return errorMessage_; }
inline void WTHttpRequest::setErrorMessage(const QString &newValue)
{ if ( newValue == errorMessage_ ) { return; } errorMessage_ = newValue; emit errorMessageChanged( errorMessage_ ); }

inline int WTHttpRequest::timeoutInterval() const
{ return timeoutInterval_; }
inline void WTHttpRequest::setTimeoutInterval(const int &newValue)
{ if ( newValue == timeoutInterval_ ) { return; } timeoutInterval_ = newValue; emit timeoutIntervalChanged( timeoutInterval_ ); }
// Property accomplish code end

#endif//PBCOMMON_WTHTTP_INC_
